// 留言总数查询
$(function () {
    function getchaxun() {
        $.ajax({
            method: 'GET',
            data: {
                valueId: new URLSearchParams(location.search).get('id'),
                typeId: 1,
                page: 1,
                size: 40,
                showType: 0
            },
            url: '/api/comment/list',
            success: res => {
                // console.log(res);
                let htmlStr = template('tpl-topic', res.data)
                $('.comments .b').html(htmlStr)
            }
        })
    }
    getchaxun()

})